package cn.itcast.nems.approval.service;

import cn.itcast.nems.approval.dao.entity.ApprovalAdditionalForm;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 审批单补充信息表单 服务类
 * </p>
 *
 * @author czq
 * @since 2024-03-08
 */
public interface ApprovalAdditionalFormService extends IService<ApprovalAdditionalForm> {
    String create(ApprovalAdditionalForm params);

    /**
     * 获取审批单补充信息表单节点BpmNodeKey
     * @param formID
     * @param journalType
     * @return
     */
    List<String> findBpmNodeKeysByFormId(String formID, ApprovalFormService.JournalType journalType);

    /**
     * 验证是否提交补充信息
     * @param formID
     * @param bpmNodeKeys
     * @param journalType
     * @return true 已补充
     */
    Boolean checkFormFlag(String formID, List<String> bpmNodeKeys, ApprovalFormService.JournalType journalType);
    void delete(String formID);

    Map<String, Object> formAdditionalFroms(String formId);


}
